package com.zmn.brs.dubbo.interfaces.blacklist;

import com.zmn.brs.common.model.dio.blacklist.BlacklistDIO;
import com.zmn.common.dto2.ResponseDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 类描述：黑名单远程接口
 * @author zhangyao
 * @since 2021/04/29 17:20
 */
@Api(value = "黑名单远程服务", tags = {"黑名单远程服务"})
public interface BlacklistListRemoteService {

    /**
     * 黑名单限制规则
     * @param blacklistDio 黑白名单检查入参对象
     * @return com.zmn.common.dto2.ResponseDTO<java.lang.Boolean>
     * @throws
     * @author zhangyao
     * @since 2021/04/29 17:20
     */
    @ApiOperation(value = "黑名单限制规则", response = ResponseDTO.class, notes = "ip,电话,用户id,渠道id,不能同时为null", tags = {"规则"})
    ResponseDTO<Boolean> checkBlacklistConstraintRules(@NotNull(message = "入参对象不能为空") @Valid @ApiParam(value = "入参对象", required = true) BlacklistDIO blacklistDio);

}
